package com.zhida.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ling
 * @since 2024-07-23
 */
@Getter
@Setter
@TableName("announcement")
@NoArgsConstructor
@AllArgsConstructor
public class Announcement implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 所属群聊
     */
    @TableField(value = "group_id")
    private Integer groupId;

    /**
     * 标题
     */
    @TableField("title")
    private String title;

    /**
     * 发布者
     */
    @TableField("username")
    private String username;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 发布时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 状态：1.正常，-1.删除
     */
    @TableField("status")
    private Integer status;
}
